﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;

namespace Widgetsphere.Autos.Websitev2.Objects
{
	public static class SessionHelper
	{
		public static bool ShowStats
		{
			get
			{
				bool b;
				bool.TryParse(ConfigurationManager.AppSettings["ShowStats"], out b);
				return b;
			}
		}

		//public static bool IsLoggedIn
		//{
		//  get { return (CurrentUserID != 0); }
		//}

		//public static int CurrentUserID
		//{
		//  get
		//  {
		//    if (CurrentUser == null)
		//      return 0;
		//    return CurrentUser.UserId;
		//  }
		//}

		//public static UserAccount CurrentUser
		//{
		//  get
		//  {
		//    if (HttpContext.Current.Session == null)
		//      return null;
		//    return (UserAccount)HttpContext.Current.Session["CurrentUser"];
		//  }
		//}

	}
}